package com.wiscamp.ninechapters.problems.enums;

/**
 * 题干类型枚举
 */
public enum StemTypes {
    GENERAL(120001, "普通类型");

    private final int value;

    private final String name;

    StemTypes(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public int getValue() {
        return value;
    }

    public static StemTypes valueOf(int value) {
        if (value == 120001) {
            return StemTypes.GENERAL;
        }
        return null;
    }
}
